package com.manpower.model;

import java.sql.Timestamp;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * MpQuestion entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "mp_question", catalog = "manpower")
public class MpQuestion implements java.io.Serializable {

	// Fields

	private String id;
	private MpDept mpDept;
	private String questionTitle;
	private Integer questionType;
	private Integer questionLevel;
	private String questionUser;
	private Timestamp questionCreattime;
	private String questionContent;
	private String questionRemarks;
	private String questionAnnexUrl;

	// Constructors

	/** default constructor */
	public MpQuestion() {
	}

	/** minimal constructor */
	public MpQuestion(String id) {
		this.id = id;
	}

	/** full constructor */
	public MpQuestion(String id, MpDept mpDept, String questionTitle,
			Integer questionType, Integer questionLevel, String questionUser,
			Timestamp questionCreattime, String questionContent,
			String questionRemarks, String questionAnnexUrl) {
		this.id = id;
		this.mpDept = mpDept;
		this.questionTitle = questionTitle;
		this.questionType = questionType;
		this.questionLevel = questionLevel;
		this.questionUser = questionUser;
		this.questionCreattime = questionCreattime;
		this.questionContent = questionContent;
		this.questionRemarks = questionRemarks;
		this.questionAnnexUrl = questionAnnexUrl;
	}

	// Property accessors
	@Id
	@Column(name = "id", unique = true, nullable = false, length = 36)
	public String getId() {
		return this.id;
	}

	public void setId(String id) {
		this.id = id;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "question_dept")
	public MpDept getMpDept() {
		return this.mpDept;
	}

	public void setMpDept(MpDept mpDept) {
		this.mpDept = mpDept;
	}

	@Column(name = "question_title", length = 200)
	public String getQuestionTitle() {
		return this.questionTitle;
	}

	public void setQuestionTitle(String questionTitle) {
		this.questionTitle = questionTitle;
	}

	@Column(name = "question_type")
	public Integer getQuestionType() {
		return this.questionType;
	}

	public void setQuestionType(Integer questionType) {
		this.questionType = questionType;
	}

	@Column(name = "question_level")
	public Integer getQuestionLevel() {
		return this.questionLevel;
	}

	public void setQuestionLevel(Integer questionLevel) {
		this.questionLevel = questionLevel;
	}

	@Column(name = "question_user", length = 36)
	public String getQuestionUser() {
		return this.questionUser;
	}

	public void setQuestionUser(String questionUser) {
		this.questionUser = questionUser;
	}

	@Column(name = "question_creattime", length = 19)
	public Timestamp getQuestionCreattime() {
		return this.questionCreattime;
	}

	public void setQuestionCreattime(Timestamp questionCreattime) {
		this.questionCreattime = questionCreattime;
	}

	@Column(name = "question_content")
	public String getQuestionContent() {
		return this.questionContent;
	}

	public void setQuestionContent(String questionContent) {
		this.questionContent = questionContent;
	}

	@Column(name = "question_remarks", length = 200)
	public String getQuestionRemarks() {
		return this.questionRemarks;
	}

	public void setQuestionRemarks(String questionRemarks) {
		this.questionRemarks = questionRemarks;
	}

	@Column(name = "question_annex_url")
	public String getQuestionAnnexUrl() {
		return this.questionAnnexUrl;
	}

	public void setQuestionAnnexUrl(String questionAnnexUrl) {
		this.questionAnnexUrl = questionAnnexUrl;
	}

}